list1 = ['python','java','javaScript','php','golang']

#start/end负数提取
# print(list1[-2:-5:-1])
# print(list1[:2])
# print(list1[1:4])
# print(list1[2:])


# step正数
# print(list1[::2])

# step负数
# print(list1[::-2])
# print(list1[-1::-2])
# print(list1[-3:-5:-2])

print(list1[1:4:1])